import requset from 'utils/request'

/**
 * 登录
 * @param {*} data 手机号 验证码
 * @returns
 */
export const login = (data) => {
  return requset({
    url: '/authorizations',
    method: 'POST',
    data,
  })
}

/**
 * 获取用户个人资料
 * @returns
 */
export const getProfile = () =>
  requset({
    url: '/user/profile',
  })
